← Back to issue list

color escape codes are left open

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1748236
Type
issue
State
open
Author
~xordspar0
Labels
ui
Created
2018-02-08 16:50:45.144255+00:00
Updated
2018-03-22 16:56:56.724259+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

When snapcraft is doing the actual snapping step and the progress spinner is animating, the green color terminal escape codes are left "open". That is, there is a "begin green color" escape code, but no "end color" code. The "end color" code isn't added until after snapping completes. This has a problem: if you stop, interrupt, or kill snapcraft during the snapping process, your terminal stays green (including your prompt, anything you type, and the output of all commands) until you somehow insert the correct escape code to stop color. During the snap step, snapcraft should add the "end color" escape code to the end of every print statement so that, no matter when in the process it gets interrupted, the color is left turned off after snapcraft runs.

Evaluation history

No evaluation history available.